<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.Chart.UI.ChartLinesResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:drawing2="clr-namespace:OpenLS.Drawing.UI;assembly=OpenLS.Drawing.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
                    >
    <DataTemplate DataType="{x:Type chart:ChartLines}" x:Key="ChartLines3DTemplate">
        <Grid Name="chartLines" Tag="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:AxisElement.MajorStep)}">

            <ItemsControl ItemTemplate="{x:Static chartui:ChartLine3DResources.SideLine3DTemplate }"
                          ItemsSource="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:AxisElement.ItemsSource)}">
                <chartui:ChartDrawingElement.LineStroke>
                    <MultiBinding Converter="{x:Static Internals:ChartConverters.ColorBaseToBrushConverter}">
                        <Binding RelativeSource ="{RelativeSource Self}" Path="(chartui:ChartElement.Style).MajorGridLineColor"/>
                        <Binding RelativeSource ="{RelativeSource Self}" Path="(drawing2:DrawingElement.ColorScheme)"/>
                    </MultiBinding>
                </chartui:ChartDrawingElement.LineStroke>
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <Grid/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </ItemsControl>
            <ItemsControl ItemTemplate="{x:Static chartui:ChartLine3DResources.BackLine3DTemplate }" ItemsSource="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:AxisElement.ItemsSource)}">
                <chartui:ChartDrawingElement.LineStroke>
                    <MultiBinding Converter="{x:Static Internals:ChartConverters.ColorBaseToBrushConverter}">
                        <Binding RelativeSource ="{RelativeSource Self}" Path="(chartui:ChartElement.Style).MajorGridLineColor"/>
                        <Binding RelativeSource ="{RelativeSource Self}" Path="(drawing2:DrawingElement.ColorScheme)"/>
                    </MultiBinding>
                </chartui:ChartDrawingElement.LineStroke>
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <Grid/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
            </ItemsControl>
        </Grid>
    </DataTemplate>
    
</ResourceDictionary>